package com.example.take_out_file.exceptions;

import com.example.take_out_file.exceptions.enumetation.ResponseEnum;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.extern.slf4j.Slf4j;

/**
 * @Description:none
 * @Author:yyyyys、
 * @Date:2024/6/29 1:40
 * @Version:1.0
 **/

@Slf4j
@Data
@EqualsAndHashCode
public class BusinessException extends RuntimeException{
    private ResponseEnum responseEnum;

    public BusinessException(ResponseEnum responseEnum){
        log.info("BusinessException:{}",responseEnum.getMessage());
        this.responseEnum = responseEnum;
    }
}
